import WeekFood from '../components/WeekFood';
import ChefClass from '../components/ChefClass';
import MenuRecommend from '../components/MenuRecommend';
import { foodsData, classesData, menusData } from '../mock/index';

const useContentData = () => {
  const contentList = [
    {
      title: '本周食材',
      component: WeekFood,
      data: foodsData,
    },
    {
      title: '厨studio课堂',
      component: ChefClass,
      data: classesData,
    },
    {
      title: '菜单推荐',
      component: MenuRecommend,
      data: menusData,
    },
  ];

  return {
    contentList,
  };
};

export default useContentData;
